package thired.class01_sort;

import sun.font.FontRunIterator;

public class Class04_Radomnum {
    public static int[] radomNum(int maxSize,int max){
        int[] nums = new int[(int)(Math.random()*(maxSize + 1))];
        for (int i = 0; i < nums.length; i++) {
            nums[i] = ((int) (Math.random() * (max+1))) - ((int)(Math.random() * (max + 1)));
        }
        return nums;
    }

    public static void main(String[] args) {
       int[] nums = radomNum(100,3);
        for (int i = 0; i < nums.length; i++) {
            System.out.print(nums[i] + " ");
        }
    }
}
